{{for(var i=0;i<it.length;i++){}}
<div class="bg_white border_b border_t border_t margin_b_10">
    <div class="border_b lineheight_3 padding_h_15 h_justify">
        <span>订单号：{{=it[i].no}}</span>
        <span class="warning">{{=it[i].status}}</span>
    </div>
    <div class="padding_h_15">
        {{for(var j=0;j<it[i].goods.length;j++){}}
            <div class="v_center border_b padding_v_10">
                <div class="width_50">
                    <img class="fit_img4" src="{{=it[i].goods[j].img}}" alt="">
                </div>
                <div class="left_50 h_justify padding_l_15">
                    <span>{{=it[i].goods[j].title}}</span>
                    <span>x{{=it[i].goods[j].num}}</span>
                </div>
            </div>
        {{}}}
        <div class="text_right lineheight_3 border_b">共{{=it[i].totalnum}}件商品 合计：<span class="warning">{{=it[i].totalprice}}</span></div>
        <div class="padding_v_15 h_justify">
            <div class="">实付款：<span class="warning">￥{{=it[i].cost}}</span></div>
            <div class="text_center">
                {{if(it[i].oldstatus == 0){}}
                <span class="btn btn_grey width_80" onclick="quit_order({{=it[i].id}})">取消订单</span>
                {{}}}

                {{if(it[i].oldstatus == 0){}}
                <span class="btn btn_danger width_80" onclick="pay_order({{=it[i].id}})">支付</span>
                {{}else if(it[i].oldstatus == 1 && it[i].sendtype == 1){}}
                <span class="btn btn_grey width_80" onclick="refund_order({{=it[i].id}})">申请退款</span>&nbsp;<span class="btn btn_default width_80">等待发货</span>
                {{}else if(it[i].oldstatus == 2){}}
                <span class="btn btn_grey width_80" onclick="refund_order({{=it[i].id}})">申请退款</span>&nbsp;<span class="btn btn_info width_80" onclick="confirm_order({{=it[i].id}})">确认收货</span>
                {{}else if(it[i].comment != 1 && it[i].oldstatus ==3  && it[i].urltype == 'wait'){}}
                <span class="btn btn_grey width_80" onclick="refund_order({{=it[i].id}})">申请退款</span>&nbsp;<span class="btn btn_primary width_80" onclick="comment_order({{=it[i].goodsid}},{{=it[i].id}})">去评价</span>
                {{}else if(it[i].comment != 1 && it[i].oldstatus ==3  && it[i].urltype == 'olist'){}}
                <span class="btn btn_primary width_80" onclick="location.href='/business/user/pork-order/wait-comment'">去评价</span>
                {{}}}
            </div>
        </div>
    </div>
</div>
{{}}}